package com.kaili.db.service;

import com.baomidou.mybatisplus.service.IService;
import com.kaili.common.stock.StockInfoBean;
import com.kaili.common.stock.StockPdaInfoBean;
import com.kaili.pojo.entity.HsEwbSubStock;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 子单库存 服务类
 * </p>
 *
 * @author cgm
 * @since 2018-06-05
 */
public interface IHsEwbSubStockService extends IService<HsEwbSubStock> {
    int getStockBySiteId(int siteId, String ewb, int stockStatus);

    List<HsEwbSubStock> getStockListBySiteId(int siteId, String ewb, int stockStatus);
    int ewbAddStock(StockInfoBean bean);

    int ewbModifyStock(StockInfoBean bean);

    int deleteEwb(String ewbNo);

    int sendEwbByBs(StockInfoBean bean);

    /**
     * BS端到件确认-处理库存
     * @param bean 库存对象
     * @param isCommit 是否提交入库,true:提交入库,false:入库回滚
     */
    void arriveEwbByBs(StockInfoBean bean,boolean isCommit);

    int dispatchEwbByBs(StockInfoBean bean);

    int signEwbByBs(StockInfoBean bean);

    List<HsEwbSubStock> stowageEwbByBs(StockInfoBean bean);

    int transEwbByBs(StockInfoBean bean);

    int sendEwbByPda(StockPdaInfoBean bean);

    int arriveEwbByPda(StockPdaInfoBean bean);

    int dispatchEwbByPda(StockPdaInfoBean bean);

    int signEwbByPda(StockPdaInfoBean bean);

    List<HsEwbSubStock> stowageEwbByPda(StockPdaInfoBean bean);

    int transEwbByPda(StockPdaInfoBean bean);

    int updateBatch(Map updateInfo);

    void pFinDispatchInput(Map info);

    void pFinEwbsTransferInput(Map info);


}
